<template>
  
    <el-tabs v-model="activeTab" @tab-click="selectTab">
        <el-tab-pane label="整体分析" name="entire">整体分析</el-tab-pane>
        <el-tab-pane label="单本分析" name="single">单本分析</el-tab-pane>
      </el-tabs>
<div v-if="activeTab=='entire'">

        <totalAnalysis></totalAnalysis>


    </div>
    <div v-if="activeTab=='single'">
       <singleAnalysis></singleAnalysis>
    </div>
 
</template>
<script setup lang="ts">
import { ref } from 'vue';
import totalAnalysis from './totalAnalysis.vue';
import singleAnalysis from './singleAnalysis.vue';
const activeTab = ref('entire');

function selectTab(tab:string) {
  console.log('当前选项卡:', tab);

}
</script>
<style scoped>

</style>